Ext.define('DDMS.view.DomainTab', {
    extend: 'Ext.tab.Panel',

    requires: [
        'Ext.field.Search'
    ],
    id:'domainTab',
    config: {
        fullscreen: true,
        activeTab: 0,
        tabBar: {
        	ui:'light',
        	padding:'0 0 0 70',
        	defaults: {
            	padding:'0 70 0 0'
        	},
            layout: {
            	type: 'hbox',
                pack : 'center',
                align: 'center'
            },
            height:90,
            docked: 'bottom'
        },
        defaults: {
            scrollable: true,
            style:'margin:.5em',
            layout: {
		        type: 'card'
		    }
        },
        items: [
        	{
                xtype : 'toolbar',
                docked: 'top',
                title:'公开招标',
                id:'domainTab-toolbar',
                height:100,
                scrollable: null,
                style:'font-size:18pt;padding-top:17pt;',
                layout: {
                    pack : 'right',
                    align: 'bottom'
                },
                items:[
                {
                    xtype: 'searchfield',
                    width:180,
                    placeHolder: '搜索',
                    id  : 'domainTab-searchfield',
                    name: 'domainTab-searchfield'
                }]
	        },
            {
                title: '公开招标',
                iconCls: 'info'
            },
            {
                title: '单一来源',
                iconCls: 'favorites'
            },
            {
                title: '竞争性谈判',
                iconCls: 'download'
            },
            {
                title: '设置',
                iconCls: 'settings',
                scrollable: false,
                items:[
                  { xclass: 'DDMS.view.Setting' }
                ]
            }
        ]
    }
});